﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class MGoodsInfo
    {
        private int id;
        private string goodsId;
        private int classId;
        private string className;
        private string goodsName;
        private int sellerId;
        private string no;
        private string picSrc;
        private int leftNum;
        private string goodsUrl;
        private DateTime addTime;
        private DateTime lastUpdateTime;
        private string note;
        private List<GoodsDtlInfo> listGoodsFtlInfo;
        private bool isInMyGoods;
        private Seller sellerInfo = new Seller();

        public MGoodsInfo()
        {
        }

        /// <summary>
        /// 主键自增ID
        /// </summary>
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        /// <summary>
        /// 商品id
        /// </summary>
        public string GoodsId
        {
            get { return goodsId; }
            set { goodsId = value; }
        }

        /// <summary>
        /// 分类ID
        /// </summary>
        public int ClassId
        {
            get { return classId; }
            set { classId = value; }
        }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string ClassName
        {
            get { return className; }
            set { className = value; }
        }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName
        {
            get { return goodsName; }
            set { goodsName = value; }
        }

        /// <summary>
        /// 卖家id
        /// </summary>
        public int SellerId
        {
            get { return sellerId; }
            set { sellerId = value; }
        }

        /// <summary>
        /// 货号
        /// </summary>
        public string No
        {
            get { return no; }
            set { no = value; }
        }

        /// <summary>
        /// 图片地址
        /// </summary>
        public string PicSrc
        {
            get { return picSrc; }
            set { picSrc = value; }
        }

        /// <summary>
        /// 剩余数量
        /// </summary>
        public int LeftNum
        {
            get { return leftNum; }
            set { leftNum = value; }
        }

        /// <summary>
        /// 宝贝所在地址
        /// </summary>
        public string GoodsUrl
        {
            get { return goodsUrl; }
            set { goodsUrl = value; }
        }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime
        {
            get { return addTime; }
            set { addTime = value; }
        }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime LastUpdateTime
        {
            get { return lastUpdateTime; }
            set { lastUpdateTime = value; }
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string Note
        {
            get { return note; }
            set { note = value; }
        }
        /// <summary>
        /// 商品详细信息
        /// </summary>
        public List<GoodsDtlInfo> ListGoodsDtlInfo
        {
            get { return listGoodsFtlInfo; }
            set { listGoodsFtlInfo = value; }
        }
        /// <summary>
        /// 是否存在我的商品中
        /// </summary>
        public bool IsInMyGoods
        {
            get { return isInMyGoods; }
            set { isInMyGoods = value; }
        }
        /// <summary>
        /// 卖家信息
        /// </summary>
        public Seller SellerInfo
        {
            get { return sellerInfo; }
            set { sellerInfo = value; }
        }
    }
}
